home *** CD-ROM | disk | FTP | other *** search
Unknown | 2005-12-07 | 1.5 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 54 18 2f 2f 20 43 6f 70 |........|T.// Cop|
|00000010| 79 72 69 67 68 74 20 28 | 43 29 20 32 30 30 35 20 |yright (|C) 2005 |
|00000020| 42 72 61 69 6e 62 6f 78 | 20 47 61 6d 65 73 2e 20 |Brainbox| Games. |
|00000030| 41 6c 6c 20 52 69 67 68 | 74 73 20 52 65 73 65 72 |All Righ|ts Reser|
|00000040| 76 65 64 2e 0d 0a 2f 2f | 20 53 65 70 74 65 6d 62 |ved...//| Septemb|
|00000050| 65 72 20 32 37 2c 20 32 | 30 30 35 0d 0a 2f 2a 2a |er 27, 2|005../**|
|00000060| 0d 0a 20 2a 20 50 72 6f | 66 69 6c 65 72 20 2d 20 |.. * Pro|filer - |
|00000070| 48 6f 6f 6b 75 70 20 74 | 6f 20 6e 61 74 69 76 65 |Hookup t|o native|
|00000080| 20 63 6c 61 73 73 65 73 | 20 74 6f 20 70 61 72 73 | classes| to pars|
|00000090| 65 20 61 6e 64 20 6d 61 | 6e 61 67 65 20 70 72 6f |e and ma|nage pro|
|000000a0| 66 69 6c 65 73 2e 0d 0a | 20 2a 0d 0a 20 2a 20 40 |files...| *.. * @|
|000000b0| 61 75 74 68 6f 72 20 20 | 53 65 65 6c 61 6e 20 56 |author |Seelan V|
|000000c0| 61 6d 61 74 68 65 76 61 | 0d 0a 20 2a 20 40 76 65 |amatheva|.. * @ve|
|000000d0| 72 73 69 6f 6e 20 24 52 | 65 76 69 73 69 6f 6e 3a |rsion $R|evision:|
|000000e0| 20 31 2e 30 20 24 0d 0a | 20 2a 20 40 64 61 74 65 | 1.0 $..| * @date|
|000000f0| 20 20 20 20 4d 61 72 63 | 68 20 32 30 30 35 0d 0a | Marc|h 2005..|
|00000100| 20 2a 2f 0d 0a 63 6c 61 | 73 73 20 50 72 6f 66 69 | */..cla|ss Profi|
|00000110| 6c 65 72 20 65 78 74 65 | 6e 64 73 20 4f 62 6a 65 |ler exte|nds Obje|
|00000120| 63 74 0d 0a 20 20 20 20 | 6e 61 74 69 76 65 3b 0d |ct.. |native;.|
|00000130| 0a 0d 0a 2f 2f 20 4c 6f | 61 64 20 70 72 6f 66 69 |...// Lo|ad profi|
|00000140| 6c 65 20 77 69 74 68 20 | 6e 61 6d 65 20 76 0d 0a |le with |name v..|
|00000150| 6e 61 74 69 76 65 20 73 | 74 61 74 69 63 20 66 69 |native s|tatic fi|
|00000160| 6e 61 6c 20 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |nal func|tion boo|
|00000170| 6c 20 4c 6f 61 64 28 69 | 6e 74 20 76 29 3b 0d 0a |l Load(i|nt v);..|
|00000180| 2f 2f 20 53 61 76 65 20 | 63 75 72 72 65 6e 74 20 |// Save |current |
|00000190| 70 72 6f 66 69 6c 65 0d | 0a 6e 61 74 69 76 65 20 |profile.|.native |
|000001a0| 73 74 61 74 69 63 20 66 | 69 6e 61 6c 20 66 75 6e |static f|inal fun|
|000001b0| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 53 61 76 65 28 |ction bo|ol Save(|
|000001c0| 29 3b 0d 0a 2f 2f 20 53 | 65 74 20 61 20 76 61 6c |);..// S|et a val|
|000001d0| 75 65 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |ue assoc|iated wi|
|000001e0| 74 68 20 61 20 6b 65 79 | 0d 0a 6e 61 74 69 76 65 |th a key|..native|
|000001f0| 20 73 74 61 74 69 63 20 | 66 69 6e 61 6c 20 66 75 | static |final fu|
|00000200| 6e 63 74 69 6f 6e 20 53 | 65 74 56 61 6c 75 65 28 |nction S|etValue(|
|00000210| 73 74 72 69 6e 67 20 76 | 6b 2c 20 73 74 72 69 6e |string v|k, strin|
|00000220| 67 20 76 76 29 3b 0d 0a | 2f 2f 20 52 65 74 75 72 |g vv);..|// Retur|
|00000230| 6e 20 76 61 6c 75 65 20 | 67 69 76 65 6e 20 61 20 |n value |given a |
|00000240| 6b 65 79 0d 0a 6e 61 74 | 69 76 65 20 73 74 61 74 |key..nat|ive stat|
|00000250| 69 63 20 66 69 6e 61 6c | 20 66 75 6e 63 74 69 6f |ic final| functio|
|00000260| 6e 20 73 74 72 69 6e 67 | 20 47 65 74 56 61 6c 75 |n string| GetValu|
|00000270| 65 28 73 74 72 69 6e 67 | 20 76 29 3b 0d 0a 2f 2f |e(string| v);..//|
|00000280| 20 43 72 65 61 74 65 20 | 6e 65 77 20 70 72 6f 66 | Create |new prof|
|00000290| 69 6c 65 20 77 69 74 68 | 20 6e 61 6d 65 20 76 0d |ile with| name v.|
|000002a0| 0a 6e 61 74 69 76 65 20 | 73 74 61 74 69 63 20 66 |.native |static f|
|000002b0| 69 6e 61 6c 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |inal fun|ction in|
|000002c0| 74 20 4e 65 77 50 72 6f | 66 69 6c 65 28 73 74 72 |t NewPro|file(str|
|000002d0| 69 6e 67 20 76 29 3b 0d | 0a 2f 2f 20 44 65 6c 65 |ing v);.|.// Dele|
|000002e0| 74 65 20 70 72 6f 66 69 | 6c 65 20 77 69 74 68 20 |te profi|le with |
|000002f0| 6e 61 6d 65 20 76 0d 0a | 6e 61 74 69 76 65 20 73 |name v..|native s|
|00000300| 74 61 74 69 63 20 66 69 | 6e 61 6c 20 66 75 6e 63 |tatic fi|nal func|
|00000310| 74 69 6f 6e 20 62 6f 6f | 6c 20 44 65 6c 65 74 65 |tion boo|l Delete|
|00000320| 50 72 6f 66 69 6c 65 28 | 69 6e 74 20 76 29 3b 0d |Profile(|int v);.|
|00000330| 0a 2f 2f 20 4c 6f 61 64 | 20 75 70 20 61 6c 6c 20 |.// Load| up all |
|00000340| 70 72 6f 66 69 6c 65 73 | 20 26 20 67 65 74 20 74 |profiles| & get t|
|00000350| 6f 74 61 6c 20 63 6f 75 | 6e 74 20 28 72 65 66 72 |otal cou|nt (refr|
|00000360| 65 73 68 65 73 20 6c 69 | 73 74 29 0d 0a 6e 61 74 |eshes li|st)..nat|
|00000370| 69 76 65 20 73 74 61 74 | 69 63 20 66 69 6e 61 6c |ive stat|ic final|
|00000380| 20 66 75 6e 63 74 69 6f | 6e 20 69 6e 74 20 47 65 | functio|n int Ge|
|00000390| 74 50 72 6f 66 69 6c 65 | 43 6f 75 6e 74 28 29 3b |tProfile|Count();|
|000003a0| 0d 0a 0d 0a 2f 2f 20 52 | 65 74 75 72 6e 20 61 6e |....// R|eturn an|
|000003b0| 20 69 6e 64 65 78 20 67 | 69 76 65 6e 20 69 74 73 | index g|iven its|
|000003c0| 20 6e 61 6d 65 0d 0a 6e | 61 74 69 76 65 20 73 74 | name..n|ative st|
|000003d0| 61 74 69 63 20 66 69 6e | 61 6c 20 66 75 6e 63 74 |atic fin|al funct|
|000003e0| 69 6f 6e 20 69 6e 74 20 | 47 65 74 50 72 6f 66 69 |ion int |GetProfi|
|000003f0| 6c 65 42 79 4e 61 6d 65 | 28 73 74 72 69 6e 67 20 |leByName|(string |
|00000400| 76 29 3b 0d 0a 0d 0a 2f | 2f 20 52 65 74 75 72 6e |v);..../|/ Return|
|00000410| 20 6e 61 6d 65 20 6f 66 | 20 70 72 6f 66 69 6c 65 | name of| profile|
|00000420| 20 67 69 76 65 6e 20 69 | 74 73 20 69 6e 64 65 78 | given i|ts index|
|00000430| 20 28 63 61 6c 6c 20 47 | 65 74 50 72 6f 66 69 6c | (call G|etProfil|
|00000440| 65 43 6f 75 6e 74 20 66 | 69 72 73 74 29 0d 0a 6e |eCount f|irst)..n|
|00000450| 61 74 69 76 65 20 73 74 | 61 74 69 63 20 66 69 6e |ative st|atic fin|
|00000460| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 20 73 74 72 69 |al funct|ion stri|
|00000470| 6e 67 20 47 65 74 50 72 | 6f 66 69 6c 65 4e 61 6d |ng GetPr|ofileNam|
|00000480| 65 28 69 6e 74 20 76 29 | 3b 0d 0a 2f 2f 20 52 65 |e(int v)|;..// Re|
|00000490| 74 75 72 6e 73 20 6e 61 | 6d 65 20 6f 66 20 63 75 |turns na|me of cu|
|000004a0| 72 72 65 6e 74 6c 79 20 | 6c 6f 61 64 65 64 20 70 |rrently |loaded p|
|000004b0| 72 6f 66 69 6c 65 20 28 | 22 22 20 69 66 20 6e 6f |rofile (|"" if no|
|000004c0| 20 70 72 6f 66 69 6c 65 | 20 69 73 20 6c 6f 61 64 | profile| is load|
|000004d0| 65 64 29 0d 0a 6e 61 74 | 69 76 65 20 73 74 61 74 |ed)..nat|ive stat|
|000004e0| 69 63 20 66 69 6e 61 6c | 20 66 75 6e 63 74 69 6f |ic final| functio|
|000004f0| 6e 20 73 74 72 69 6e 67 | 20 47 65 74 43 75 72 72 |n string| GetCurr|
|00000500| 65 6e 74 50 72 6f 66 69 | 6c 65 4e 61 6d 65 28 29 |entProfi|leName()|
|00000510| 3b 0d 0a 0d 0a 6e 61 74 | 69 76 65 20 73 74 61 74 |;....nat|ive stat|
|00000520| 69 63 20 66 69 6e 61 6c | 20 66 75 6e 63 74 69 6f |ic final| functio|
|00000530| 6e 20 62 6f 6f 6c 20 49 | 73 56 61 6c 69 64 50 72 |n bool I|sValidPr|
|00000540| 6f 66 69 6c 65 28 29 3b | 0d 0a 0d 0a 2f 2f 20 52 |ofile();|....// R|
|00000550| 65 74 75 72 6e 73 20 74 | 6f 74 61 6c 20 6e 75 6d |eturns t|otal num|
|00000560| 62 65 72 20 6f 66 20 63 | 68 65 63 6b 70 6f 69 6e |ber of c|heckpoin|
|00000570| 74 73 20 69 6e 20 70 72 | 6f 66 69 6c 65 0d 0a 6e |ts in pr|ofile..n|
|00000580| 61 74 69 76 65 20 73 74 | 61 74 69 63 20 66 69 6e |ative st|atic fin|
|00000590| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 20 69 6e 74 20 |al funct|ion int |
|000005a0| 47 65 74 54 6f 74 61 6c | 43 68 65 63 6b 70 6f 69 |GetTotal|Checkpoi|
|000005b0| 6e 74 73 28 29 3b 0d 0a | 2f 2f 20 52 65 74 75 72 |nts();..|// Retur|
|000005c0| 6e 73 20 6e 61 6d 65 20 | 6f 66 20 63 68 65 63 6b |ns name |of check|
|000005d0| 70 6f 69 6e 74 20 61 74 | 20 69 6e 64 65 78 20 76 |point at| index v|
|000005e0| 0d 0a 6e 61 74 69 76 65 | 20 73 74 61 74 69 63 20 |..native| static |
|000005f0| 66 69 6e 61 6c 20 66 75 | 6e 63 74 69 6f 6e 20 73 |final fu|nction s|
|00000600| 74 72 69 6e 67 20 47 65 | 74 43 68 65 63 6b 70 6f |tring Ge|tCheckpo|
|00000610| 69 6e 74 28 69 6e 74 20 | 76 29 3b 0d 0a 00 |int(int |v);... |
+--------+-------------------------+-------------------------+--------+--------+